package p200;

public class Leetcode_268 {
    public int missingNumber(int[] nums) {
        int r = nums.length;
        for (int i = 0; i < nums.length; i++) {
            r ^= i;
            r ^= nums[i];
        }
        return r;
    }
    public static void main(String[] args) {
    }
}
